from pages.BasePage import BasePage
from locator.home_locator.HomeLocators import HomeLocator


class HomePage(BasePage):

    # 用户头像是否存在
    def is_exist(self):
        path = "腾讯文档_主页"
        return self.wait_element_presence(locator=HomeLocator.userImage, path=path)

    # 在线办公教育
    def online_edu(self):
        path = "在线办公教育"
        self.click_element(locator=HomeLocator.online_edu, path=path)

